<?php
include('include/bootstrap.inc.php');



$url = mysql_real_escape_string($_POST['url']);
$images = mysql_real_escape_string($_POST['strip_images']);
$comments = mysql_real_escape_string($_POST['strip_comments']);

if($images != 1){ $images = 0; }
if($comments != 1){ $comments = 0; }





$insert = "INSERT INTO `urls` (`url_id`, `url`, `strip_images`, `strip_comments`) VALUES (NULL, '".$url."', '".$images."', '".$comments."')";
mysql_query($insert);


header ("Location: dashboard.php"); 


?>